import G from "../Utilities/Global";

/**
 * 背景图的资源配置
 * created by Five on 2018-12-24 17:01:49
 */

export default class BackgroudConfig {
    public Assets: Array<cc.SpriteFrame>;

    constructor() {
        this.Assets = new Array<cc.SpriteFrame>();
        this.init();
    }

    private async init() {
        let assets = await G().Res.LoadDir("texuture/bg") as Array<cc.SpriteFrame>;
        assets.forEach(asset => {
            this.Assets.push(asset);
        })
        cc.log(this.Assets)
    }
}